package cn.zzf.algs.note.exercise.fundamental;

import edu.princeton.cs.algs4.StdOut;

import java.util.Arrays;

/**
 * @author GaoFeng
 * @date 2019/11/26 12:48
 */
public class Ex_1_1_35 {
     public static void test() {
         int sides = 6;
         double[] dist = new double[2 * sides + 1];

         for (int i = 0;i <= sides;i++) {
            for (int j = 1;j <= sides;j++) {
                dist[i + j] += 1.0;
            }
         }

         for (int k = 2; k <= 2 * sides;k++) {
             dist[k] /= 36.0;
         }

         StdOut.println(Arrays.toString(dist));

     }

      public static void main(String[] args) {
         int count = 6;
          for (int i = 0; i < count; i++) {
            // 使用
          }
      }

}
